<?php /* Smarty version 2.6.26, created on 2018-07-05 16:54:04
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/api/payment_edit.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="cnav"><a href="javascript:;" class="back">编辑接口</a></div> 
<div class="main"> 
<form action="?m=api&a=payment_save" method="post">
	<?php if ($this->_tpl_vars['row']['id']): ?><input type="hidden" size="25" name="id" value="<?php echo $this->_tpl_vars['row']['id']; ?>
"/><?php endif; ?>
	<table width="100%" class="etable"> 
		<tr>
			<td width="120">支付方式：</td>
			<td><input type="text" size="51" name="name" value="<?php echo $this->_tpl_vars['row']['name']; ?>
" disabled/></td>
	  	</tr> 
		<tr>
			<td>手续费：</td>
			<td><input type="text" size="51" name="fees" value="<?php echo $this->_tpl_vars['row']['fees']; ?>
"/></td>
	  	</tr>
		<tr>
			<td>描述：</td>
			<td><textarea name="describe" cols="50" rows="3"><?php echo $this->_tpl_vars['row']['describe']; ?>
</textarea></td>
	  	</tr> 
		<?php if ($this->_tpl_vars['row']['param']): ?>
			<?php $_from = $this->_tpl_vars['row']['param']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['i']):
?>
			<tr>
				<td><?php echo $this->_tpl_vars['i']; ?>
：</td>
				<td><input type="text" value="<?php echo $this->_tpl_vars['row']['config'][$this->_tpl_vars['i']]; ?>
" size="51" name="param[<?php echo $this->_tpl_vars['i']; ?>
]"><i>必填</i></td>
			</tr>
			<?php endforeach; endif; unset($_from); ?> 
		<?php endif; ?> 
		<tr>
			<td>是否默认：</td>
			<td>
				<label>&nbsp;&nbsp;开启 <input name="is_default" type="radio" value="1" <?php if ($this->_tpl_vars['row']['is_default'] == '1'): ?>checked="checked"<?php endif; ?>/></label>&nbsp;&nbsp;&nbsp;
				<label>&nbsp;&nbsp;关闭 <input name="is_default" type="radio" value="0" <?php if ($this->_tpl_vars['row']['is_default'] == '0'): ?>checked="checked"<?php endif; ?>/></label>
			</td>
	  	</tr>
		<tr>
			<td>状态：</td>
			<td>
				<label>&nbsp;&nbsp;开启 <input name="status" type="radio" value="1" <?php if ($this->_tpl_vars['row']['status'] == '1'): ?>checked="checked"<?php endif; ?>/></label>&nbsp;&nbsp;&nbsp;
				<label>&nbsp;&nbsp;关闭 <input name="status" type="radio" value="0" <?php if ($this->_tpl_vars['row']['status'] == '0'): ?>checked="checked"<?php endif; ?>/></label>
			</td>
	  	</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" name="submit" value="提交"/></td>
	  	</tr>		
	</table> 
</form>
</div>
</body>
</html>